#ifndef SEARCHWINDOW_H
#define SEARCHWINDOW_H

#include <QtGui>
#include "PlainEdit.h"

class SearchWindow : public QMainWindow
{
    Q_OBJECT
public:
    static SearchWindow* getInstance(QWidget *qw = 0);
    static void Destroy();
    void setEdit(PlainEdit *edit);

private:
    SearchWindow(QWidget *qw);
    static SearchWindow* instance;

    QMainWindow* wnd;
    QLineEdit* led;
    PlainEdit* ed;
    QCheckBox* ch_backwards;
    QCheckBox* ch_caseSen;
    QCheckBox* ch_wholeWords;
    QPushButton* btn_ok;
    QPushButton* btn_next;

private slots:
    void searchClicked();
    void nextClicked();
};

#endif // SEARCHWINDOW_H
